package cn.iocoder.yudao.module.study.message.controller.admin;

import cn.iocoder.yudao.module.study.message.service.MsgService;
import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author cjc
 * @Date 2023/12/29 15:17
 * @Description: 消息发送 controller
 * @Version 1.0
 */
@Tag(name = "消息发送")
@RestController
@RequestMapping("/send/message")
@Validated
public class SendMessageController {

    @Resource
    private MsgService msgService;

    @GetMapping("sendMessage")
    public String sendMessage(){
        JSONObject jsonObject = new JSONObject();
        msgService.sendMsg(jsonObject);
        return "Hello message. factory demo";
    }
}
